<?php


namespace app\controller\api\common;

use app\common\repositories\system\common\ProblemCategoryRepository;
use crmeb\basic\BaseController;

class ProblemCategory extends BaseController
{
    /**
     * @return mixed
     * @author fupeng
     * @day 2023/10/8
     */
    public function lst(ProblemCategoryRepository $repository)
    {
        return app('json')->success($repository->getAncestorsChildList());
    }
}
